package ysc.cqnu.operdb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.serviceImpl.DeleteCaiJianInfoServiceImpl;

@CrossOrigin
@Controller
@ResponseBody
public class DeleteCaiJianInfoController {
    @Autowired
    private ResultData resultData;
    @Autowired
    private DeleteCaiJianInfoServiceImpl deleteCaiJianInfoService;
    @RequestMapping(value = "/deleteCaijianInfo",method = RequestMethod.GET)
    public ResultData deleteCaijianInfo(@RequestParam("id") String id){
        System.out.println("裁剪删除按钮前端已连接！");
        resultData = deleteCaiJianInfoService.deleteCaiJianInfoService(id);
        return resultData;
    }
}
